package com.itheima.service;


import com.itheima.pojo.OmsOrderSetting;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class OmsOrderSettingService {

    @DubboReference
    private OmsOrderSettingApi omsOrderSettingApi;

    /**
     * 修改指定订单设置
     * @param id
     * @param omsOrderSetting
     * @return
     */


    /////不会写，先生代写
    public void updateById(Integer id, OmsOrderSetting omsOrderSetting) {
        omsOrderSettingApi.update(id,omsOrderSetting);
    }


    /**
     * 获取指定订单设置
     * @param id
     * @return
     */
    public OmsOrderSetting getOrderSetting(Integer id) {
        OmsOrderSetting omsOrderSetting = omsOrderSettingApi.getOrderSetting(id);
        return omsOrderSetting;
    }
}
